/*----------------------------------------------------------------------------
 * CMSIS-RTOS 'main' function template
 *---------------------------------------------------------------------------*/

#define osObjectsPublic                     // define objects in main module
#include "osObjects.h"                      // RTOS object definitions
#include "config.h"

osThreadDef(CalculateThread, osPriorityNormal, 1, 512);
/*
 * main: initialize and start the system
 */

int main (void) {
  osKernelInitialize ();                    // initialize CMSIS-RTOS
	Init_Board();
//	CalculateThreadID = osThreadCreate(osThread(CalculateThread), NULL);
	mainID = osThreadGetId();
	osKernelStart ();                         // start thread execution 

	InitKey();
	App_MainThread(NULL);
}


	
	
	

